-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: End-to-end request via custom EVM Gateway.sol on Ethereum Local Network to custom Relayer to custom Secret contract on Localsecret with response back and then to NunyaBusiness.sol #33
Conversation
0178f5d
to
7925a8a
Compare
Have a look at the svub-encrypt-payload-client-side branch. Let's create a shared folder for all the secret network related code. |
To try to resolve error when running submit.ts |
After successfully compiling the latest Secret network Rust contract shown here by following these setup instructions to install dependencies, and create and compile the contract:
When I then run the following to deploy that Secret contract to Secret Testnet using this script /github/svub/nunya/packages/secret-contracts-scripts/src/index.ts shown here, it gives the following error on that line where it's trying to perform a tx to store/upload the Secret smart contract on the Secret Testnet "pulsar-3", where the endpoint I'm using is let txOptions = {
gasLimit: 5_000_000, // default 25_000
gasPriceInFeeDenom: 1, // default 0.1
feeDenom: "uscrt",
feeGranter: wallet.address,
waitForCommit: true, // default true
broadcastTimeoutMs: 240_000, // default 60_000
broadcastCheckIntervalMs: 24_000, // default 6_000 for 6 second block
broadcastMode: BroadcastMode.Async,
};
try {
tx = await secretjs.tx.compute.storeCode(txParams, txOptions); As shown, I've already tried changing from the defaults without success. But I can't find any evidence of the transaction that it mentions in the error logs
Error:
|
…eturn contract_address in logs
…ode JSON generated with AI
…ODO: update relayer if changes
…r config.yml sync
… outputs and update relayer config
5e03a3d
to
4210968
Compare
… deployed.json instead of config.ts for that already deployed
… Wasm bytecode could not be deserialized. Deserialization error: Invalid table reference (128): create contract failed
fulfilledSecretContractPubkeyCallback
and insend
of Gateway.sol where it callsprepareResultBytesToCallbackData
for that callback selector, figure out how to destructure just the Secret contract public key that is returned and store it in NunyaBusiness storage . Relates to parsing the unencrypted JSON in Solidity #28